package com.safeneeds.util.base;

import java.util.List;

import com.safeneeds.sysmana.entity.SysUserRole;

/**
 * 个人资源缓存
 * 
 * @version 1.0
 * @date 2016-04-17
 * @author gaof
 */
public class UserInfoCache {

	/** 经办人员个人资源Session缓存key */
	public static final String USER_INFO_SESSION_CACHE_KEY = "userInfoSessionCacheKey";

	/** 用户标识符 */
	public static String USER_ACCOUNT = "ADMIN";

	/** 用户信息 */
	private IUserInfo userInfo = null;
	
	private List<SysUserRole> userRoles = null;

	public IUserInfo getUserInfo() {
		return this.userInfo;
	}
	
	public List<SysUserRole> getUserRoles(){
		return this.userRoles;
	}

	public void setUserInfo(IUserInfo userInfo) {
		this.userInfo = userInfo;
		USER_ACCOUNT = this.userInfo.getUserAccount();
	}
	
	public void setUserRoles(List<SysUserRole> userRoles){
		this.userRoles = userRoles;
	}

}
